package Java.j1;

import java.util.Scanner;

public class AcWing_607 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double A = sc.nextDouble();
        double B = sc.nextDouble();
        double C = sc.nextDouble();

        System.out.printf("MEDIA = %.1f\n",(A*2+B*3+C*5)/10);
    }
}
